package com.edu.d7_generic_class;

public class Test {
    /**
     * 泛型类的定义，使用
     */
    public static void main(String[] args) {
        MyArrayList<String> myArrayList = new MyArrayList<>();
        MyArrayList<Integer> myArrayList2 = new MyArrayList<>();
        myArrayList.addList("黑马");
        myArrayList.addList("程序员");
        myArrayList.addList("奥特曼");
        myArrayList2.addList(123);
        System.out.println(myArrayList);
        myArrayList.deleteList("奥特曼");
        System.out.println(myArrayList);

        myArrayList2.addList(123);
    }
}
